﻿using System;
using NUnit.Framework;
using System.Collections.Generic;
using System.Web;
using System.Web.Caching;

namespace com.huigo.Framework.BLL.test
{
    public class TestProvince
    {
        [Test]
        public void TestGetProvinceList()
        {
            HttpRequest request = new HttpRequest("", "http://localhost:17065/", "");
            HttpContext.Current = new HttpContext(request, new HttpResponse(new System.IO.StringWriter()));
            //BLL.Province.mHttpContext = HttpContext.Current;
            List<Model.Province> provinceList = BLL.Province.GetProvinceList();
            Assert.True(provinceList.Count > 0);
        }

        [Test]
        public void TestGetCityListByProvinceId()
        {
            HttpRequest request = new HttpRequest("", "http://localhost:17065/", "");
            HttpContext.Current = new HttpContext(request, new HttpResponse(new System.IO.StringWriter()));
            List<Model.City> cityList = BLL.Province.GetCityListByProvinceId(31);
            Assert.True(cityList.Count > 0);
        }

    }
}
